package cn.usian.service.impl;

import cn.usian.mapper.UserMapper;
import cn.usian.pojo.User;
import cn.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;


    @Override
    public User findByUserId(Integer id) {
        return userMapper.selectById(id);
    }
}
